package com.open.yujiakj.common.domain;

import lombok.Data;
import org.apache.poi.ss.formula.functions.T;

@Data
public class R {

    /** 成功 */
    public static final int SUCCESS = 0;

    /** 失败 */
    public static final int FAIL = 500;

    private int code;

    private String msg;

    private Object data;

    private static R restResult(T data, int code, String msg)
    {
        return new R();
    }
    public static R error(int i, String errorMesssage) {
            return null;
    }

    public static R error(String msg) {
        return null;
    }

    public static R ok(Object page) {
        return null;
    }
}
